﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Signup : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        InitializeWeb();
    }
    private void InitializeWeb()
    {
        //initial+flooor image
        this.Controls.AddAt(0, new LiteralControl(@"
          <html xmlns='http://www.w3.org/1999/xhtml' >
            <head runat='server'>
                <title>Sync Home Page</title>
                <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
                <style type='text/css'></style>
                <link href='css/css1.css' rel='stylesheet' type='text/css' />
            </head>
            <body align='center'>
            "));
    }
    //ShowMessageBox("Signup Complete");
    //Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script language=javascript>window.setTimeout(window.location.href = 'Default.aspx' ,5000);</script>");

    protected void ShowMessageBox(string message)
    {
        string sJavaScript = "<script language=javascript>\n";
        sJavaScript += "alert('" + message + "');\n";
        sJavaScript += "</script>";
        this.RegisterStartupScript("MessageBox", sJavaScript);
    }
    protected void backButton_Click(object sender, EventArgs e)
    {
        Response.Redirect("Default.aspx");
    }
}
